<template>
  <div>
    子组件----{{ value }}
    <button @click="hClick">子组件的按钮</button>
  </div>

</template>
<script>

export default {
  props: {

    value: {
      type: Number,
      default: 0
    }
  },

  methods: {
    hClick() {
      this.$emit('input', this.value + 1)
    }
  }
}
</script>
